<?php $this->load->view('common/admin_header');?>
<div class="block">
  <div class="block_head">
    <div class="bheadl"></div>
    <div class="bheadr"></div>
    <h2><?=$lang['global_lable_36']?></h2>
    <ul>
      <li><a href="<?=site_url('admins/productunits')?>"><?=$lang['global_lable_41']?></a></li>
    </ul>
  </div>
  <!-- .block_head ends -->
  <div class="block_content">
    <?php $this->load->view('common/notify');?>
    <form id="form" action="<?=site_url('admins/productunits/modify');?>" method="post" enctype="multipart/form-data">
      <input type="hidden" name="edit_id" value='<?=set_value('edit_id',isset($edit_id)?$edit_id:'')?>' />
      <?php foreach($languages->result_array() as $lgs):?>
      <?php $k=$lgs['id'];?>
      <p>
        <?php if($k==1){?>
        <label><?=$lang['content_lable_6']?>(繁體):</label>
        <input type="text" value="<?=set_value('descriptions['.$k.'][name]',isset($descriptions[$k]['name'])?$descriptions[$k]['name']:'')?>" class="text small" name="descriptions[<?=$k?>][name]">
        <?php }?>

        <?php if($k==2){?>
        <label><?=$lang['content_lable_6']?>(English):</label>
        <input type="text" value="<?=set_value('descriptions['.$k.'][name]',isset($descriptions[$k]['name'])?$descriptions[$k]['name']:'')?>" class="text small" name="descriptions[<?=$k?>][name]">
        <?php }?>
        <span class="note required">*<?=$lang['global_lable_35']?></span>
      </p>
      <?php endforeach;?>
      <p>
        <input class="btn btn-primary" type="submit" name="btn_save" value="<?=$lang['global_lable_12']?>" />
        <input class="btn" type="reset" value="<?=$lang['global_lable_13']?>"/>
      </p>
    </form>
  </div>
  <!-- .block_content ends -->
  <div class="bendl"></div>
  <div class="bendr"></div>
</div>
<!-- .block ends -->
<?php $this->load->view('common/admin_footer');?>